< previous page page_352 next page >

Page 352
Functions are built-in procedures or subroutines that are used to evaluate, calculate, or transform data from the database. The Formula Editor is divided into four sub-windows that are used to create the calculation (see Figure 13.6). The Fields window lists all the database fields that are available to you, based on the tables you have previously selected. The Functions window lists all the functions that you can use to create a calculated field. The Operators window lists all the operators that you can use, and the largest window is the Formula Text window, where you build the actual calculation. You can choose to use the different windows to select items or if you know the correct syntax, type directly into the formula text area.
You can combine fields, functions, operators, and other calculations to create complex calculated fields. This enables you to create complex calculations in steps (small calculated fields) and then combine them together to form the finished calculation.
Filtering Your Data
When you select a field for the report, every row or query in the table will be printed. However, in many cases, you may only need specific rows of data from the database rather than including all the rows. For example, you may only a want New York customer data, or only invoices that fall within a particular range of dates. Crystal Reports includes four options, listed in Table 13.2, on the Report menu for filtering the data in your report.
TABLE 13.2. AVAILABLE OPTIONS FOR FILTERING DATA IN A REPORT.
Menu OptionDescription
Select RecordsEnables you to limit the number of records in your report based on a condition or conditions specified using a Selection Formula dialog box.
Edit RecordUses the Formula Editor to enable you to modify the selection
Selection Formulacondition.
Select GroupsEnables you to limit your report to a specific group or groups, based on a condition or conditions specified using a Selection Formula dialog box.
Edit GroupUses the Formula Editor to enable you to modify the selection
Selection Formulacondition.

 
< previous page page_352 next page >

If you like this book, buy it!